export const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'right',
	labelWidth: '80px',
	column: [
		{
			label: '姓名',
			prop: 'personName',
			type: 'input',
			span: 8,
		},
		{
			label: '身份证',
			prop: 'idCard',
			type: 'input',
			span: 8,
		},
		{
			label: '打卡地点',
			prop: 'punchPlace',
			type: 'input',
			span: 8,
		},
		{
			label: '打卡时间',
			prop: 'punchTimeBetween',
			type: 'dateBetween',
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
			span: 8,
		},
	],
}

export const tableConfig = {
	stripe: true,
	border: true,
	columns: [
		{ label: '姓名', prop: 'personName' },
		{ label: '身份证', prop: 'idCard', plusXing: '2,2' },
		{ label: '打卡地点', prop: 'punchPlace' },
		{ label: '打卡时间', prop: 'punchTime' },
		{
			label: '上链状态',
			prop: 'onBlockchainFlag',
			api: 'geiDictItemList',
			type: 'remoteSelect',
			code: 'BLOCK_CHAIN_STATUS',
			tipProp: 'onBlockchainTime',
			tipLabel: '上链时间',
		},
	],
}

export const api = {
	index: 'view_iccPunchRecord_page',
	detail: 'view_iccPunchRecord_page',
}
export const baseConfig = {
	dictcodes: ['BLOCK_CHAIN_STATUS'],
	rowKey: 'id',
	tipLabel: 'name',
	pageName: '指静脉打卡记录',
	exportMqTopic: '/ning/export/',
	api,
	auth: api,
	menuBtn: [],
	paramsObj: {
		personType: 2,
	},
	dialogConfig: {
		width: '75%',
	},
	searchConfig,
	tableConfig,
}
